package com.hyt.it.ogt.ks.mapper;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.ks.api.kw.model.CandidateAccuracyDTO;
import com.hyt.it.ogt.ks.api.kw.model.CandidateScoreDTO;
import com.hyt.it.ogt.ks.model.entity.ExamScore;
import com.hyt.it.ogt.ks.model.xyvo.XyPostExamScoreVO;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author linjd
 * @since 2020-06-02
 */
public interface ExamScoreMapper extends BaseMapper<ExamScore> {
    /**
     * 获取考试得分接口
     * @param examCandidateId
     * @param paperId
     * @param paperVersion
     * @return
     */
    CandidateScoreDTO getScoreByExamCandidateId(String examCandidateId, String paperId, String paperVersion);


    /**
     * 获取考试得分接口--考生答案已备份时
     * @param examCandidateId
     * @param paperId
     * @param paperVersion
     * @return
     */
    CandidateScoreDTO getScoreByExamCandidateIdWhenBackup(String examCandidateId, String paperId, String paperVersion);


    /**
     * 获取考生正确率接口
     * @param examCandidateId
     * @return
     */
    List<CandidateAccuracyDTO> getCandidateAccuracy(String examCandidateId);
    
    /**
     * 获取考生客观题总分
     * @param examCandidateId
     * @return
     */
    BigDecimal getCandidateObjectScore(String examCandidateId);
    
    /**
     * 获取兴业银行岗位考试成绩
     * @param admissionNumber
     * @return
     */
    List<XyPostExamScoreVO> getXyPostExamScore(String admissionNumber);
}
